import request from "@/utils/request";
import { host } from "@/api/common";

export function bug_tree(data) {
  return request({
    url: host + '/api/project/bug_menu_tree',
    method: 'post',
    data
  })
}

export function bug_list(data) {
  return request({
    url: host + '/api/bug/bug_list',
    method: 'post',
    data
  })
}

export function add_edit_menu(data) {
  return request({
    url: host + '/api/bug/add_edit_menu',
    method: 'post',
    data
  })
}

export function del_menu(data) {
  return request({
    url: host + '/api/bug/del_menu',
    method: 'post',
    data
  })
}

export function add_bug_detail(data) {
  return request({
    url: host + '/api/bug/add_bug',
    method: 'post',
    data
  })
}

export function input_img(data) {
  return request({
    url: host + '/api/media/input_img',
    method: 'post',
    data
  })
}

export function del_bug(data) {
  return request({
    url: host + '/api/bug/del_bug',
    method: 'post',
    data
  })
}
